package com.yunxi.dao.sto;

import com.yunxi.bizToHub.pojo.VehicleInboundVdcVO;
import com.yunxi.core.dao.BaseMapperPlus;
import com.yunxi.model.sto.StoStockInPlan;
import com.yunxi.sto.pojo.*;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 车辆入库计划 Mapper 接口
 * </p>
 *
 * @author caoYong
 * @since 2019-05-17
 */
public interface StoStockInPlanMapper extends BaseMapperPlus<StoStockInPlan> {
    String queryMaxNo(String no);

    StoStockInScanVO queryVehicleState(StoStockScanVO stoStockScanVO)throws Exception;

    void bindVehicleState(StoStockScanVO stoStockScanVO)throws Exception;

    StoStockScanVO queryEmptyStorage(Map map) throws Exception;

    StoStockInVO queryStockInInfo(String stockInPlanNo);

    /**
     * VIN码查询VDC入库信息
     * @param vin
     * @return
     */
    VehicleInboundVdcVO queryVdcStockInInfo(String vin);

    StoStockInPlanVO getDetailById(String id);

    StoStockInOutReportVO stockInOutCount(String rfidNo)throws Exception;

    void updateStockInPlan(StoStockInPlan stoStockInPlan);

    List<StoStockInPlanLateVO> lateStockInPlan (StoStockInPlanLateVO stoStockInPlanLateVO);

    List<StoStockInPlanVO> planListByVin(StoStockScanVO stoStockScanVO);

}
